package com.aqie.rabbit.redis.keyPrefix;

import com.aqie.rabbit.redis.BasePrefix;

public class SmsKey extends BasePrefix {
    private SmsKey( int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }
    public SmsKey(String prefix) {
        super(prefix);
    }
    private final static String SMS_CODE_CONTENT_VALID_PREFIX = "SMS::CODE::CONTENT";
    private final static String SMS_GAP_PREFIX = "SMS::CODE::GAP";

    // 短信有效期 5min
    public static SmsKey SmsContentValidKey = new SmsKey(300, SMS_CODE_CONTENT_VALID_PREFIX);
    // 短信发送间隔 3600 * 24  120
     public static SmsKey SmsContentGapKey = new SmsKey(120, SMS_GAP_PREFIX);

}
